<?php 
namespace Home\Controller;
use Think\Controller;
class IndexController extends Controller{
	public function index(){
		$tree = D('Admin\Cat')->getTree();
		$this->assign('tree',$tree);
		$hot_goods = D('Goods')->field('goods_id,goods_name,shop_price,goods_img,market_price')->where('is_best=1')->order('goods_id asc')->limit(4)->select();
		$this->assign('hots',$hot_goods);
		$this->display();
	}
}